<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="$store.state.homeview.navBool">
        <Aside></Aside>
      </el-aside>
      <el-container>
        <el-header>
          <Header></Header>
        </el-header>
        <el-main>
          <Main></Main>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script setup >
import Aside from "../components/LeftMenu.vue"
import Header from "../components/TopMenu.vue";
import Main from "./HomeChildren/HomeView.vue";
</script>
<style lang="scss">
.common-layout {
  .el-aside {
    background-color: #545c64;
  }

  .el-header {
    background-color: whitesmoke;
  }

  .el-main {
    background-color: #eee;
  }
}

// 高度100%
.el-aside,
.el-container,
.common-layout,
#app,
body,
html {
  height: 100%;
}</style>